import { createBrowserRouter } from "react-router-dom";

import Choose from "../view/Choose/Choose.tsx";
import Home from "../view/Home/Home.tsx";
import List from "../view/List/List.tsx";
import Login from "../view/Login/Login.tsx";
import Message from "../view/Message/Message.tsx";
import Order from "../view/Order/Order.tsx";
import Shop from "../view/Shop/Shop.tsx";
import Ticket from "../view/Ticket/Ticket.tsx";
import Xq from "../view/Xq/Xq.tsx";
import Zc from "../view/Zc/Zc.tsx";
import Zfb from "../view/Zfb/Zfb.tsx";
import Cg from "../view/CG/Cg.tsx"

const router = createBrowserRouter([
  {
    path: "/",
    element: <Home />,
  },
  {
    path: "/Choose",
    element: <Choose />,
  },
  {
    path: "/Cg",
    element: <Cg />,
  },
  {
    path: "/List",
    element: <List />,
  },
  {
    path: "/Login",
    element: <Login />,
  },
  {
    path: "/Message",
    element: <Message />,
  },
  {
    path: "/Order",
    element: <Order />,
  },
  {
    path: "/Shop",
    element: <Shop />,
  },
  {
    path: "/Ticket",
    element: <Ticket />,
  },
  {
    path: "/Xq/:id",
    element: <Xq />,
  },
  {
    path: "/Zc",
    element: <Zc />,
  },
  {
    path: "/Zfb",
    element: <Zfb />,
  },
  {
    path: "*",
    element: <h2>404 Not Found</h2>,
  },
]);

export default router;
